#ifndef STUDENTEDITOR_H
#define STUDENTEDITOR_H

#include <QtGui>

#include "Student.h"

//! Widget to edit the properties of a Student.
class StudentEditor : public QWidget
{
	Q_OBJECT

public:
	//! Constructor
	/*!
		@param parent See QWidget.
	*/
	StudentEditor( QWidget* parent );
	//! Destructor
	virtual ~StudentEditor();

	//! Set the Student to edit.
	void editStudent( Student* student );

private slots:
	void setEMail( const QString& eMail );
	void setPhone( const QString& phone );
	void setAddress( const QString& address );
	void setGradYear( const QString& gradYear );

private:
	Student* mStudent;

	QLabel* mNameLabel;
	QLabel* mIdLabel;
	QLineEdit* mEMailEdit;
	QLineEdit* mPhoneEdit;
	QTextEdit* mAddressEdit;
	QLineEdit* mGradYearEdit;
	QLineEdit* mProgramEdit;
	QLineEdit* mSubDisplineEdit;
};

#endif // STUDENTEDITOR_H